Fix a crash in gnome-terminal when using a compositor
authorMatthias Clasen <mclasen@redhat.com>
Sat, 13 Nov 2010 00:19:48 +0000 (19:19 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 13 Nov 2010 00:22:49 +0000 (19:22 -0500)
commit45498417c8405ad9ca3d8cd94940d6fb2702ec43
tree079f8223371a75b692850a82607087fd5794db0a
parent7a52b1df67e338e08b3a2c2f92cc14381ace83bd
Fix a crash in gnome-terminal when using a compositor

In this case, gnome-terminal sets an RGBA visual on its window,
and we need to be careful when creating the icon pixmap, to create
the pixmap with the same depth as the visual, or we risk a BadMatch
from XRenderCreatePicture deep inside cairo.
gdk/x11/gdkwindow-x11.c